Allow creating snapshot from VM snapshot#4739
Conversation
|
I am struggling to see the use-case. Can you explain why you want this, @ravening? |
sometimes we need to create a template or volume from snapshot. If the global setting is false then we cant create snapshot and hence we cant create template also. But with this change, we are able to create those |
|
so if you want to create a template from a vm-snapshot you need to first create a volume snapshot from it, tnx @ravening . |
for stopped vms, we can create volume snapshot no matter if kvm.snapshot.enabled is true or false. for running vms, if kvm.snapshot.enabled is false, we cannot create volume snapshot If we already have a vm snapshot, even if kvm.snapshot.enabled is false, we should be able to create volume snapshot from vmsnapshot (step 2 above), as vm will not be paused and vm image will not be touched. |
|
@weizhouapache @ravening any update on this? |
not sure what update is needed here @rhtyd |
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 243 |
|
me neither @rhtyd are you missing something here? |
DaanHoogland
left a comment
There was a problem hiding this comment.
code looks good, any marvin or other test automation @ravening ?
@DaanHoogland didnt think of writing any automation test cases.. tested it manually |
|
loads of travis errors @ravening , can you have a look? |
|
@blueorangutan package |
|
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 297 |
|
@blueorangutan test |
|
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-307)
|
|
@ravening pl check snapshot related failures |
|
Re-ping @ravening |
@rhtyd will look into it in few days.. kind of busy with some other work |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
@Pearl1594 if possible can you run the test again? |
|
@blueorangutan package |
|
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 681 |
|
@blueorangutan test |
|
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1405)
|
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1339 |
|
@blueorangutan test |
|
@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2147)
|
|
@DaanHoogland @weizhouapache ran the tests again in my setup and these didnt fail |
If `kvm.snapshot.enabled` is set to false then we cant create snapshot from VM snapshot. With this change, its possible to create snapshot from VM snapshot even when the global setting is set to false. Note that you still cant directly create a snapshot from volume though
461b95b to
c147ff6
Compare
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3140 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3869)
|
Description
If
kvm.snapshot.enabledis set to false then we cant create snapshot fromVM snapshot. With this change, its possible to create snapshot from VM
snapshot even when the global setting is set to false.
Note that you still cant directly create a snapshot from volume though
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?